-- GENERATED SPELL FOR [Hozzer] --


function spell0_24547(pUnit, Event) --@Knockback,Self--
pUnit:FullCastSpellOnTarget(64319,pUnit)
pUnit:RegisterEvent('Sorts_24547', 656, 1)
end

function spell1_24547(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(34298,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24547', 674, 1)
end

function Sorts_24547(pUnit, Event)
local choix_sorts_24547 = math.random(0, 1)
if choix_sorts_24547 == 0 then
pUnit:RegisterEvent('spell0_24547', 1, 1)
end
if choix_sorts_24547 == 1 then
pUnit:RegisterEvent('spell1_24547', 1, 1)
end
end

function mob24547_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24547', math.random(1500, 3000), 1)
end

function mob24547_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24547_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24547_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24547, 1, 'mob24547_Action')
RegisterUnitEvent(24547, 2, 'mob24547_Leave')
RegisterUnitEvent(24547, 3, 'mob24547_Kill')
RegisterUnitEvent(24547, 4, 'mob24547_Die')
